<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 300px;
            height: 200px;
            border: 1px solid #000;
        }
        .box .item{
            float: left;
        }
        .box .b1{
            width: 100px;
            height: 100px;
            background-color: orange;
        }
        .box .b2{
            width: 100px;
            height: 50px;
            background-color: red;
        }
        .box .b3{
            width: 100px;
            height: 50px;
            background-color: green;
        }
    </style>
</head>
<body>
    <h1>浮动的贴靠特性</h1>
    <div class="box">
        <div class="item b1"></div>
        <div class="item b2"></div>
        <div class="item b3"></div>
    </div>
</body>
</html>